/*
 * Copyright 2018-present KunMinX
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.nsgf.library.ui.adapter;

import android.content.Context;
import android.graphics.Typeface;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.RecyclerView;

import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;
import com.zhht.htzx.R;
import com.nsgf.library.data.bean.LibraryInfo;
import com.nsgf.library.data.bean.ProductBean;
import com.zhht.htzx.databinding.FragmentNsgfHomeNewbornZoneBinding;

/**
 * Create by GC at 24/10/19
 */
public class HomeLabelGateTitleListAdapter extends SimpleDataBindingAdapter<ProductBean, FragmentNsgfHomeNewbornZoneBinding> {

    public HomeLabelGateTitleListAdapter(Context context) {
        super(context, R.layout.fragment_nsgf_home_newborn_zone, new DiffUtil.ItemCallback<ProductBean>() {
            @Override
            public boolean areItemsTheSame(@NonNull ProductBean oldItem, @NonNull ProductBean newItem) {
                return false;
            }

            @Override
            public boolean areContentsTheSame(@NonNull ProductBean oldItem, @NonNull ProductBean newItem) {
                return false;
            }
        });

    }

    @Override
    protected void onBindItem(FragmentNsgfHomeNewbornZoneBinding binding, ProductBean item, RecyclerView.ViewHolder holder) {
        binding.setVm(item);
    }
}
